
import BaseService from '@/api/BaseService'
class LayoutService extends BaseService {
  // 请求保单模型inst接口
  getLayout (commonInfo, code, callback = () => {
  }) {
    const data = {
      commonInfo: commonInfo,
      value: code
    }
    return this.remoteCall('/layout/getLayout', data, callback)
  }

  createDefaultEntry (commonInfo, ndCode, callback = () => {
  }) {
    const data = {
      commonInfo: commonInfo,
      value: ndCode
    }
    return this.remoteCall('/layout/createDefaultEntry', data, callback)
  }

  createFilterConditionLayout (commonInfo, ndCode, callback = () => {
  }) {
    const data = {
      commonInfo: commonInfo,
      value: ndCode
    }
    return this.remoteCall('/layout/createFilterConditionLayout', data, callback)
  }

  createFilterResultLayout (commonInfo, ndCode, callback = () => {
  }) {
    const data = {
      commonInfo: commonInfo,
      value: ndCode
    }
    return this.remoteCall('/layout/createFilterResultLayout', data, callback)
  }

  createDefaultEntryLayoutNv (commonInfo, ndCode, callback = () => {
  }) {
    const data = {
      commonInfo: commonInfo,
      value: ndCode
    }
    return this.remoteCall('/layout/createDefaultEntryLayoutNv', data, callback)
  }

  createFilterConditionLayoutNv (commonInfo, ndCode, callback = () => {
  }) {
    const data = {
      commonInfo: commonInfo,
      value: ndCode
    }
    return this.remoteCall('/layout/createFilterConditionLayoutNv', data, callback)
  }

  createFilterResultLayoutNv (commonInfo, ndCode, callback = () => {
  }) {
    const data = {
      commonInfo: commonInfo,
      value: ndCode
    }
    return this.remoteCall('/layout/createFilterResultLayoutNv', data, callback)
  }

  getLayoutNv (commonInfo, ndCode, id, callback = () => {
  }) {
    const data = {
      commonInfo: commonInfo,
      value: id
    }
    return this.remoteCall('/layout/getLayoutNv', data, callback)
  }
}

const layoutService = new LayoutService(false)
export default layoutService
